package com.doudou.collection.orm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName UserRole<br>
 * @Description 用户-角色<br>
 * @Author 李浩文<br>
 * @Date 2023/6/15 21:17<br>
 * @Version 1.0<br>
 */
@Data
@TableName("t_user_role")
public class UserRole {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Long userId;
    private Integer roleId;
    private Integer isAdmin;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;
}
